package org.example.memora.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.memora.entity.UserInterest;

import java.util.List;

public interface UserInterestsMapper extends BaseMapper<UserInterest> {

    @Select("SELECT interest_id FROM user_interests WHERE user_id = #{userId}")
    List<Integer> selectInterestIdsByUserId(@Param("userId") Integer userId);
}
